#include "test_info_view.h"
#include "ui_test_info_view.h"
#include "widget_header_buttons.h"
#include <iostream>

test_info_view::test_info_view(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::test_info_view)
{
    setMainWindowTitle("Test Information");
    ui->setupUi(this);
    ui->gridLayout->addWidget(new widget_header_buttons(this),0,0,0,0);

    std::cout << g_currentSession << std::endl;

    if (g_currentSession != TEACHER_SESSION)
    {
        ui->textEdit->setReadOnly(true);
    }
}

test_info_view::~test_info_view()
{
    delete ui;
}

/*
void test_info_view::on_pushButton_clicked()
{
    emit (changeScene(TEST_VIEW));
}
*/
